\usepackage[activeacute]{babel}
\usepackage{fancyhdr}
\usepackage{ecarat}
\usepackage{graphicx}
%\usepackage{amssymb}
\usepackage{amssymb,amsmath}
%\usepackage[all]{xy}
\usepackage{graphicx}
\usepackage{listings}
%\usepackage{pseudocode}
\usepackage[utf8]{inputenc}
%\usepackage{wrapfig}
\usepackage{lastpage}
\usepackage{multicol}
\usepackage{url}
\usepackage{color}
\usepackage{array}
\usepackage{url}
\usepackage{listings}
\usepackage{float}

\graphicspath{
{./images/}
}

\usepackage{xifthen}% provides \isempty test
%~ \usepackage{ulem}%para subrayados
\usepackage{dashrule}%para subrayados

%~ \usepackage{relacion}

\oddsidemargin 0in
\textwidth 6.5in
\topmargin 0in
\addtolength{\topmargin}{-.4in}
\addtolength{\leftmargin}{-.5in}
\textheight 10in
\parskip=1ex
\pagestyle{fancy}
\newcommand{\real}{\hbox{\bf R}}
\newcommand{\prima}{^{\prime}}
\newcommand{\tab}{\hspace*{1cm}}
%Cosas que se usan en el enunciado
% \parindent = 0 pt
% \parskip = 11 pt

\usepackage{a4wide}
\newcommand{\erf}{\hbox{erf}}
\newcommand\abs[1]{\ensuremath{\left| {#1} \right|}}
%~ \addtolength{\textheight}{1cm}

\lstset {%
     language=Prolog,
     frame=l,
     framerule=1pt,
     aboveskip=1em,
     framextopmargin=3pt,
     framexbottommargin=3pt,
     framexleftmargin=0.4cm,
     framesep=0pt,
     rulesep=.4pt,
     %~ backgroundcolor=\color{gris95},
     rulesepcolor=\color{red},
     tabsize=4,
     %
     stringstyle=\sffamily,
     showstringspaces = false,
     basicstyle=\footnotesize\sffamily,
     identifierstyle=,
     %commentstyle=\sffamily\color{gris50},
     keywordstyle=\bfseries,
     %commentstyle=\scriptsize, %\scriptsize\sffamily,
     breaklines=true,
     breakatwhitespace=true,
     morekeywords={setof},
     morecomment=[l][\ttfamily\scriptsize]{\%},
     morecomment=[l][\color{blue}\tiny]{\%\%\%},
   }

\usepackage{longtable}
